package org.example.crazy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.crazy.dao.UserMapper;
import org.example.crazy.domain.User;
import org.example.crazy.service.IDemoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author yzz
 * @CreateTime 2025/03/11
 * @Description DemoApplication
 */
@Service
public class IDemoServiceImpl  extends ServiceImpl<UserMapper, User> implements IDemoService {
    @Resource
    private UserMapper mapper;

    @Override
    public List<User> getUsersByDaoAnnotation(List<Integer> ids) {
        return mapper.getUsersByDaoAnnotation(ids);
    }

    @Override
    public List<User> getUsersByDaoXml(List<Integer> ids) {
        return mapper.getUsersByDaoXml(ids);
    }
}
